﻿<Window x:Class="MindTree.PerfWorkbench.Azure.Monitor.AzureMonitoringConfig"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        Title="AzureMonitoringConfig" Height="300" Width="300">
    <Grid Loaded="Grid_Loaded">
        <Grid.Resources>
            <DataTemplate x:Key="FirstCell">
                <StackPanel Orientation="Horizontal">
                    <CheckBox Name="chk1" IsChecked="{Binding Path=IsSelected,
                        RelativeSource={RelativeSource FindAncestor, AncestorType={x:Type ListViewItem}}}"/>
                </StackPanel>
            </DataTemplate>
            
            <ControlTemplate x:Key="celltemplate">
                <StackPanel>
                    <CheckBox Name="chk2"></CheckBox>
                </StackPanel>
            </ControlTemplate>
        </Grid.Resources>
       
        <ListView Name="DynColumns" >
            <ListView.View >
                <GridView x:Name="ConfigGridView" AllowsColumnReorder="True" >
                    <GridViewColumn Header="Azure Roles"></GridViewColumn>
                    <GridViewColumn Header="Counter File Path" CellTemplate="{StaticResource FirstCell}"></GridViewColumn>
                    <!--<GridViewColumn Header="Column1" DisplayMemberBinding="{Binding Path=Name}"></GridViewColumn>
                    <GridViewColumn Header="Column2"></GridViewColumn>
                    <GridViewColumn Header="Column3"></GridViewColumn>
                    <GridViewColumn Header="Column4" DisplayMemberBinding="{Binding Path=Name}"></GridViewColumn>
                    <GridViewColumn Header="Column5"></GridViewColumn>
                    <GridViewColumn Header="Column6"></GridViewColumn> CellTemplate="{StaticResource FirstCell}"-->
                </GridView>
            </ListView.View>
            
        </ListView>


    </Grid>
</Window>
